<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header"/>
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}"/>
    <link th:replace="common/tip"/>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <h3 class="header smaller lighter blue"><em class="icon-list"></em>球队阵型列表</h3>
            <form class="form-horizontal" th:object="${footUserFormationSearchForm}" method="post"
                  th:action="@{/hy/footUserFormation/search}" name="form"
                  th:if="${session.footUser.qx.text == '会员' || session.footUser.qx.text == 'VIP1' || session.footUser.qx.text == 'VIP2' || session.footUser.qx.text == 'VIP3'}">
                <div class="row-fluid">
                    <div class="span4">
                        <a class="btn btn-info" type="button" th:href="@{/hy/footUserFormation/add}"><em
                                class="icon-plus"></em>添加</a>
                        <button class="btn btn-danger" type="button"
                                onclick="deleteall('/hy/footUserFormation/deleteall');"><em
                                class="icon-remove-circle"></em>删除
                        </button>
                        <a class="btn" type="button" th:href="@{/index}"><em class="icon-arrow-left"></em>返回首页</a>
                    </div>
                    <div class="span8">
                        <table style="width:100%" border="0">
                            <tbody>
                            <tr>
                                <th style="width: 155px;">是否启用:</th>
                                <td style="width: auto;"><select th:field="*{status}" id="status" name="status"
                                                                 class="input_fix" title="">
                                    <option value="">全部</option>
                                    <option value="0">是</option>
                                    <option value="1">否</option>
                                </select></td>
                                <td style="width:120px;">
                                    <button class="btn btn-info" style="float: right;" type="button"
                                            onclick="pagechange(1);"><em class="icon-search"></em>查询
                                    </button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="row-fluid"
                     th:if="${footUserFormationList != null && #lists.size(footUserFormationList) > 0}">
                    <div class="span12">
                        <table id="table_bug_report" class="table table-hover">
                            <thead>
                            <tr>
                                <th class="center" style="width:60px;"><label><a
                                        onclick="selectAll(this)">全/不选</a></label></th>
                                <th>球队</th>
                                <th>阵型</th>
                                <th>是否启用</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="t: ${footUserFormationList}">
                                <td class="center"><label><input type="checkbox" name="selectIds"
                                                                 th:value="${t.id}"/><span
                                        class="lbl">&nbsp;</span></label></td>
                                <td><a th:href="@{/hy/footUserFormation/view(id=${t.id})}" th:text="${t.qdName}">123</a>
                                </td>
                                <td><a th:href="@{/hy/footUserFormation/view(id=${t.id})}"
                                       th:text="${t.back + '-' + t.middle + '-' + t.front}">123</a></td>
                                <td><a th:href="@{/hy/footUserFormation/view(id=${t.id})}"
                                       th:text="${t.status == 1 ? '未启用' : '启用'}">123</a></td>
                                <td>
                                    <div class="inline position-relative">
                                        <button class="btn btn-minier btn-primary dropdown-toggle"
                                                data-toggle="dropdown"><em class="icon-cog icon-only bigger-110"></em>
                                        </button>
                                        <ul class="dropdown-menu dropdown-icon-only dropdown-light pull-right dropdown-caret dropdown-close">
                                            <li><a th:href="@{/hy/footUserFormation/startup(id=${t.id})}"
                                                   class="tooltip-success" data-rel="tooltip" title="启用"
                                                   data-placement="left"> <span class="green"><em
                                                    class="icon-edit"></em></span></a></li>
                                            <li><a th:href="@{/hy/footUserFormation/edit(id=${t.id})}"
                                                   class="tooltip-success" data-rel="tooltip" title="修改"
                                                   data-placement="left"> <span class="green"><em
                                                    class="icon-edit"></em></span></a></li>
                                            <li><a class="tooltip-error" data-rel="tooltip" title="删除"
                                                   data-placement="left"
                                                   th:onclick="'javascript:deleteById(\'/hy/footUserFormation/delete?id=\', ' + ${t.id} + ')'">
                                                <span class="red"><em class="icon-remove"></em></span></a></li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td colspan="5">
                                    <div class="row-fluid" th:include="common/page :: page"></div>
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </form>
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/jsList"></div>
</body>
</html>